package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class ExtendedCursorName implements DynamicCursorName {

    private int beginIndex;
    private int endIndex;
    private ScopeOption scopeOption;
    private SimpleValueSpecification simpleValueSpecification;

    public ExtendedCursorName(int beginIndex,
                              int endIndex,
                              ScopeOption scopeOption,
                              SimpleValueSpecification simpleValueSpecification) {
        this.beginIndex = beginIndex;
        this.endIndex = endIndex;
        this.scopeOption = scopeOption;
        this.simpleValueSpecification = simpleValueSpecification;
    }

    @Override
    public int getBeginIndex() {
        return beginIndex;
    }

    @Override
    public int getEndIndex() {
        return endIndex;
    }

    public ScopeOption getScopeOption() {
        return scopeOption;
    }

    public SimpleValueSpecification getSimpleValueSpecification() {
        return simpleValueSpecification;
    }

}
